package com.example.light.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.light.system.entity.loginLog;
import com.example.light.system.entity.user;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Mapper
@Repository
public interface UserMapper extends BaseMapper<user> {
    // 查询账号角色归属
    ArrayList searchUserRoleName(@Param("userId") Integer userId);

    // 模糊查询角色信息
    ArrayList searchUser(@Param("userAccount") String userAccount, @Param("userName") String userName);
}
